package com.cwl.pattern.原型模式;

/**
 * @program: pattern
 * @description:
 * @author: ChenWenLong
 * @create: 2019-06-24 13:51
 **/
public class Realizetype implements Cloneable{

    Realizetype(){
        System.out.println("具体原型创建成功！");
    }

    @Override
    public Object clone() throws CloneNotSupportedException{
        System.out.println("具体原型复制成功！");
        return (Realizetype)super.clone();
    }
}
